PauseScene = {}

function PauseScene:new()
    local o = {}
    setmetatable(o, {__index = PauseScene})
    o:initialize()
    return o
end

function PauseScene:initialize()
    self.font = love.graphics.newFont(50)
end

function PauseScene:update(dt) end
function PauseScene:mousepressed(x, y, button) end

function PauseScene:draw()
    SceneManager.stack[1]:draw()

    love.graphics.setColor(0, 0, 0, 100)
    love.graphics.rectangle("fill", 0, 0, 800, 600)

    love.graphics.setColor(255, 255, 255)

    love.graphics.setFont(self.font)
    love.graphics.print("PAUSED", 300, 275)
end

function PauseScene:keypressed(key, unicode)
    if key == "p" then
        SceneManager.pop()
    end
end
